const state = {

    harmDie: {
        RI_DIED_ID: "",
        RI_DIED_TIME: "",
        RI_DIED_HTIME: "",
        RI_DIED_ADDRESS: [],
        RI_DIED_ADDRESSDETAIL: "",
        RI_DIED_DETAIL: "",
        REPORTINFORMATION_ID: "",
        RI_DIED_STATE: "",
        RI_DIED_WHY: "",
        RI_DIED_HADDRESS: '' //意外发生地
    },
    harmDieRules: {
        RI_DIED_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_DIED_HTIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_DIED_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_DIED_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_DIED_DETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_DIED_HADDRESS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    },
    harmDisability: {
        RI_INJURE_ID: "",
        RI_INJURE_TIME: "",
        RI_INJURE_HTIME: "",
        RI_INJURE_ADDRESS: [],
        RI_INJURE_DETAILS: "",
        RI_INJURE_ADDRESSDETAIL: "",
        REPORTINFORMATION_ID: "",
        RI_INJURE_STATE: "",
        RI_INJURE_WHY: "",
        RI_INJURE_FADDRESS: ''
    },
    harmDisabilityRules: {
        RI_INJURE_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_INJURE_HTIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_INJURE_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_INJURE_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_INJURE_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_INJURE_FADDRESS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    },
    rescueMeidca: {
        RI_HMEDIA_ID: "",
        RI_HMEDIA_TYPE: "",
        RI_HMEDIA_TIME: "",
        RI_HMEDIA_ADDRESS: [],
        RI_HMEDIA_DETAIS: "",
        RI_HMEDIA_ISLZ: "",
        REPORTINFORMATION_ID: "",
        RI_HMEDIA_STATE: "",
        RI_HMEDIA_WHY: "",
        RI_HMEDIA_ADDRESSDETAIL: "",
        RI_HMEDIA_ISUS: ""
    },
    rescueMeidcaRules: {
        RI_HMEDIA_TYPE: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HMEDIA_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HMEDIA_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_HMEDIA_DETAIS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HMEDIA_ISLZ: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HMEDIA_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HMEDIA_ISUS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]


    },
    rescueMove: {
        RI_HCHANGE_ID: "",
        RI_HCHANGE_TIME: "",
        RI_HCHANGE_ADDRESS: [],
        RI_HCHANGE_HNAME: "",
        RI_HCHANGE_HADDRESS: "",
        RI_HCHANGE_HTEL: "",
        RI_HCHANGE_HEMAIL: "",
        RI_HCHANGE_DETAIL: "",
        RI_HCHANGE_CDETAIL: "",
        RI_HCHANGE_DOC: "",
        REPORTINFORMATION_ID: "",
        RI_HCHANGE_STATE: "",
        RI_HCHANGE_WHY: "",
        RI_HCHANGE_NNAME: "",
        RI_HCHANGE_NADDRESS: "",
        RI_HCHANGE_NTEL: "",
        RI_HCHANGE_NEMAIL: "",
        RI_HCHANGE_ADDRESSDETAIL: "",
        RI_HCHANGE_ISUS: ""
    },
    rescueMoveRules: {
        RI_HCHANGE_ISUS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_NNAME: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_NADDRESS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_NTEL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_NEMAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_HCHANGE_HNAME: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_HADDRESS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_HEMAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_DETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_CDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_DOC: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HCHANGE_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
    },
    rescueReturned: {
        RI_HBACK_ID: "",
        RI_HBACK_TIME: "",
        RI_HBACK_ADDRESS: [],
        RI_HBACK_ADDRESSDETAIL: "",
        RI_HBACK_HNAME: "",
        RI_HBACK_HADDRESS: "",
        RI_HBACK_HTEL: "",
        RI_HBACK_HEMAIL: "",
        RI_HBACK_DETAILS: "",
        RI_HBACK_YDETAILS: "",
        RI_HBACK_DOC: "",
        REPORTINFORMATION_ID: "",
        RI_HBACK_STATE: "",
        RI_HBACK_WHY: "",
        RI_HBACK_ISUS: ""
    },
    rescueReturnedRules: {
        RI_HBACK_ISUS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_HBACK_HNAME: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_HADDRESS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_HTEL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_HEMAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_YDETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_DOC: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBACK_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    },
    rescueVisit: {
        RI_HVISIT_ID: "",
        RI_HVISIT_TIME: "",
        RI_HVISIT_ADDRESS: [],
        RI_HVISIT_ADDRESSDETAIL: "",
        RI_HVISIT_DETAILS: "",
        REPORTINFORMATION_ID: "",
        RI_HVISIT_STATE: "",
        RI_HVISIT_WHY: "",
        RI_HVISIT_ISUS: ""
    },
    rescueVisitRules: {
        RI_HVISIT_ISUS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HVISIT_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HVISIT_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_HVISIT_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HVISIT_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    },
    rescueAccompany: {
        RI_HACCOMPANY_ID: "",
        RI_HACCOMPANY_TIME: "",
        RI_HACCOMPANY_ADDRESS: [],
        RI_HACCOMPANY_ADDRESSDETAIL: "",
        RI_HACCOMPANY_DETAILS: "",
        REPORTINFORMATION_ID: "",
        RI_HACCOMPANY_STATE: "",
        RI_HACCOMPANY_WHY: "",
        RI_HACCOMPANY_ISUS: ""
    },
    rescueAccompanyRules: {
        RI_HACCOMPANY_ISUS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HACCOMPANY_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HACCOMPANY_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_HACCOMPANY_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HACCOMPANY_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    },
    rescueInter: {
        RI_HBURIAL_ID: "",
        RI_HBURIAL_TIME: "",
        RI_HBURIAL_ADDRESS: [],
        RI_HBURIAL_DETAILS: "",
        RI_HBURIAL_TYPE: "",
        RI_HBURIAL_ISLZ: "",
        REPORTINFORMATION_ID: "",
        RI_HBURIAL_STATE: "",
        RI_HBURIAL_WHY: "",
        RI_HBURIAL_ADDRESSDETAIL: "",
        RI_HBURIAL_ISUS: "",
        RI_HBURIAL_FADDRESS: ""
    },
    rescueInterRules: {
        RI_HBURIAL_ISUS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBURIAL_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBURIAL_ADDRESS: [{
            type: 'array',
            required: true,
            message: '请选择一项',
            trigger: 'blur'
        }],
        RI_HBURIAL_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBURIAL_TYPE: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBURIAL_ISLZ: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBURIAL_ADDRESSDETAIL: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_HBURIAL_FADDRESS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    },
    studyBreak: {
        RI_ACADEMIC_ID: "",
        RI_ACADEMIC_TIME: "",
        RI_ACADEMIC_REASON: "",
        RI_ACADEMIC_DETAILS: "",
        REPORTINFORMATION_ID: "",
        RI_ACADEMIC_STATE: "",
        RI_ACADEMIC_WHY: ""
    },
    studyBreakRules: {
        RI_ACADEMIC_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_ACADEMIC_REASON: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_ACADEMIC_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    },
    travelDelay: {
        RI_TRAVELDELAY_ID: "",
        RI_TRAVELDELAY_WAY: "",
        RI_TRAVELDELAY_NUMBER: "",
        RI_TRAVELDELAY_FROM: "",
        RI_TRAVELDELAY_TO: "",
        RI_TRAVELDELAY_PLANOUT: "",
        RI_TRAVELDELAY_PLANARRIVE: "",
        RI_TRAVELDELAY_FACTOUT: "",
        RI_TRAVELDELAY_FACTARRIVE: "",
        RI_TRAVELDELAY_DETAILS: "",
        REPORTINFORMATION_ID: "",
        RI_TRAVELDELAY_STATE: "",
        RI_TRAVELDELAY_WHY: ""
    },
    travelDelayRules: {
        RI_TRAVELDELAY_WAY: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],

        RI_TRAVELDELAY_NUMBER: [{

            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_TRAVELDELAY_FROM: [{

            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_TRAVELDELAY_TO: [{

            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_TRAVELDELAY_PLANOUT: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_TRAVELDELAY_PLANARRIVE: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_TRAVELDELAY_FACTOUT: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_TRAVELDELAY_FACTARRIVE: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_TRAVELDELAY_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
    },
    travelLose: {
        RI_LOSE_ID: "",
        RI_LOSE_ADDRESS: "",
        RI_LOSE_TIME: "",
        RI_LOSE_FROM: "",
        RI_LOSE_TO: "",
        RI_LOSE_DETAILS: "",
        REPORTINFORMATION_ID: "",
        RI_LOSE_STATE: "",
        RI_LOSE_WHY: ""
    },
    travelLoseRules: {
        RI_LOSE_ADDRESS: [{
            // type: 'array',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_LOSE_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_LOSE_FROM: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_LOSE_TO: [{
                required: true,
                message: '此项不能为空',
                trigger: 'blur'
            }]
            // RI_LOSE_DETAILS: [{
            //     required: true,
            //     message: '此项不能为空',
            //     trigger: 'blur'
            // }]
    },
    three: {
        RI_OTHER_ID: "",
        RI_OTHER_TYPE: "",
        RI_OTHER_TIME: "",
        RI_OTHER_ADDRESS: [],
        RI_OTHER_REASON: "",
        RI_OTHER_DESCRIBE: "",
        RI_OTHER_ASK: "",
        RI_OTHER_ISLAW: "",
        RI_OTHER_DETAILS: "",
        RI_OTHER_DOC: "",
        REPORTINFORMATION_ID: "",
        RI_OTHER_STATE: "",
        RI_OTHER_WHY: "",
        RI_OTHER_ADDRESSDETAILS: ""
    },
    threeRules: {
        RI_OTHER_TYPE: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_OTHER_TIME: [{
            type: 'date',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_OTHER_ADDRESS: [{
            type: 'array',
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_OTHER_REASON: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_OTHER_DESCRIBE: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_OTHER_ASK: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_OTHER_ISLAW: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        RI_OTHER_DETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }],
        // RI_OTHER_DOC: [{
        //     required: true,
        //     message: '此项不能为空',
        //     trigger: 'blur'
        // }],
        RI_OTHER_ADDRESSDETAILS: [{
            required: true,
            message: '此项不能为空',
            trigger: 'blur'
        }]
    }


};
const mutations = {
    rescueMoveChanger(state, result) {
        if (result != {}) {
            state.rescueMove.RI_HCHANGE_ID = result.RI_HCHANGE_ID,
                state.rescueMove.RI_HCHANGE_TIME = result.RI_HCHANGE_TIME,
                state.rescueMove.RI_HCHANGE_ADDRESS = result.RI_HCHANGE_ADDRESS,
                state.rescueMove.RI_HCHANGE_HNAME = result.RI_HCHANGE_HNAME,
                state.rescueMove.RI_HCHANGE_HADDRESS = result.RI_HCHANGE_HADDRESS,
                state.rescueMove.RI_HCHANGE_HTEL = result.RI_HCHANGE_HTEL,
                state.rescueMove.RI_HCHANGE_HEMAIL = result.RI_HCHANGE_HEMAIL,
                state.rescueMove.RI_HCHANGE_DETAIL = result.RI_HCHANGE_DETAIL,
                state.rescueMove.RI_HCHANGE_CDETAIL = result.RI_HCHANGE_CDETAIL,
                state.rescueMove.RI_HCHANGE_DOC = result.RI_HCHANGE_DOC,
                state.rescueMove.REPORTINFORMATION_ID = result.REPORTINFORMATION_ID,
                state.rescueMove.RI_HCHANGE_STATE = result.RI_HCHANGE_STATE,
                state.rescueMove.RI_HCHANGE_WHY = result.RI_HCHANGE_WHY,
                state.rescueMove.RI_HCHANGE_NNAME = result.RI_HCHANGE_NNAME,
                state.rescueMove.RI_HCHANGE_NADDRESS = result.RI_HCHANGE_NADDRESS,
                state.rescueMove.RI_HCHANGE_NTEL = result.RI_HCHANGE_NTEL,
                state.rescueMove.RI_HCHANGE_NEMAIL = result.RI_HCHANGE_NEMAIL,
                state.rescueMove.RI_HCHANGE_ADDRESSDETAIL = result.RI_HCHANGE_ADDRESSDETAIL,
                state.rescueMove.RI_HCHANGE_ID = result.RI_HCHANGE_ID,
                state.rescueMove.RI_HCHANGE_TIME = result.RI_HCHANGE_TIME,
                state.rescueMove.RI_HCHANGE_ISUS = result.RI_HCHANGE_ISUS,
                state.rescueMove.RI_HCHANGE_WHY = result.RI_HCHANGE_WHY
        } else {
            for (var p in state.rescueMove) {
                if (p == "RI_HCHANGE_ADDRESS") {
                    state.rescueMove[p] = [];

                } else {
                    state.rescueMove[p] = '';
                }
            }
        }
    },
    rescueMeidcaChanger(state, result) {
        if (result != {}) {
            state.rescueMeidca.RI_HMEDIA_ID = result.RI_HMEDIA_ID,
                state.rescueMeidca.RI_HMEDIA_TYPE = result.RI_HMEDIA_TYPE,
                state.rescueMeidca.RI_HMEDIA_TIME = result.RI_HMEDIA_TIME,
                state.rescueMeidca.RI_HMEDIA_ADDRESS = result.RI_HMEDIA_ADDRESS,
                state.rescueMeidca.RI_HMEDIA_DETAIS = result.RI_HMEDIA_DETAIS,
                state.rescueMeidca.RI_HMEDIA_ISLZ = result.RI_HMEDIA_ISLZ,
                state.rescueMeidca.REPORTINFORMATION_ID = result.REPORTINFORMATION_ID,
                state.rescueMeidca.RI_HMEDIA_STATE = result.RI_HMEDIA_STATE,
                state.rescueMeidca.RI_HMEDIA_ADDRESSDETAIL = result.RI_HMEDIA_ADDRESSDETAIL,
                state.rescueMeidca.RI_HMEDIA_ISUS = result.RI_HMEDIA_ISUS,
                state.rescueMeidca.RI_HMEDIA_BILLDOC = result.RI_HMEDIA_BILLDOC,
                state.rescueMeidca.RI_HMEDIA_WHY = result.RI_HMEDIA_WHY
        } else {
            state.rescueMeidca.RI_HMEDIA_ID = '',
                state.rescueMeidca.RI_HMEDIA_TYPE = '',
                state.rescueMeidca.RI_HMEDIA_TIME = '',
                state.rescueMeidca.RI_HMEDIA_ADDRESS = [],
                state.rescueMeidca.RI_HMEDIA_DETAIS = '',
                state.rescueMeidca.RI_HMEDIA_ISLZ = '',
                state.rescueMeidca.REPORTINFORMATION_ID = '',
                state.rescueMeidca.RI_HMEDIA_STATE = '',
                state.rescueMeidca.RI_HMEDIA_ADDRESSDETAIL = '',
                state.rescueMeidca.RI_HMEDIA_ISUS = '',
                state.rescueMeidca.RI_HMEDIA_BILLDOC = '',
                state.rescueMeidca.RI_HMEDIA_WHY = ''
        }

    },
    rescueAccompanyChanger(state, result) {
        if (result != {}) {
            state.rescueAccompany.RI_HACCOMPANY_ID = result.RI_HACCOMPANY_ID;
            state.rescueAccompany.RI_HACCOMPANY_ADDRESS = result.RI_HACCOMPANY_ADDRESS;
            state.rescueAccompany.RI_HACCOMPANY_ADDRESSDETAIL = result.RI_HACCOMPANY_ADDRESSDETAIL;
            state.rescueAccompany.RI_HACCOMPANY_BILLDOC = result.RI_HACCOMPANY_BILLDOC;
            state.rescueAccompany.RI_HACCOMPANY_DETAILS = result.RI_HACCOMPANY_DETAILS;
            state.rescueAccompany.RI_HACCOMPANY_ISUS = result.RI_HACCOMPANY_ISUS;
            state.rescueAccompany.RI_HACCOMPANY_TIME = result.RI_HACCOMPANY_TIME;
            state.rescueAccompany.RI_HACCOMPANY_WHY = result.RI_HACCOMPANY_WHY
        } else {
            for (var p in state.rescueAccompany) {
                if (p == "RI_HACCOMPANY_ADDRESS") {
                    state.rescueAccompany[p] = [];
                } else {
                    state.rescueAccompany[p] = '';
                }

            }
        }
    },
    rescueReturnedChanger(state, result) {
        if (result != {}) {
            state.rescueReturned.RI_HBACK_ADDRESS = result.RI_HBACK_ADDRESS;
            state.rescueReturned.RI_HBACK_ADDRESSDETAIL = result.RI_HBACK_ADDRESSDETAIL;
            state.rescueReturned.RI_HBACK_BILLDOC = result.RI_HBACK_BILLDOC;
            state.rescueReturned.RI_HBACK_DETAILS = result.RI_HBACK_DETAILS;
            state.rescueReturned.RI_HBACK_DOC = result.RI_HBACK_DOC;
            state.rescueReturned.RI_HBACK_HADDRESS = result.RI_HBACK_HADDRESS;
            state.rescueReturned.RI_HBACK_HEMAIL = result.RI_HBACK_HEMAIL;
            state.rescueReturned.RI_HBACK_HNAME = result.RI_HBACK_HNAME;
            state.rescueReturned.RI_HBACK_HTEL = result.RI_HBACK_HTEL;
            state.rescueReturned.RI_HBACK_ISUS = result.RI_HBACK_ISUS;
            state.rescueReturned.RI_HBACK_TIME = result.RI_HBACK_TIME;
            state.rescueReturned.RI_HBACK_YDETAILS = result.RI_HBACK_YDETAILS;
            state.rescueReturned.RI_HBACK_WHY = result.RI_HBACK_WHY
        } else {
            for (var p in state.rescueReturned) {
                if (p == "RI_HBACK_ADDRESS") {
                    state.rescueReturned[p] = [];
                } else {
                    state.rescueReturned[p] = '';
                }
            }
        }
    },
    rescueVisitChanger(state, result) {
        if (result != {}) {
            state.rescueVisit.RI_HVISIT_ADDRESS = result.RI_HVISIT_ADDRESS;
            state.rescueVisit.RI_HVISIT_ADDRESSDETAIL = result.RI_HVISIT_ADDRESSDETAIL;
            state.rescueVisit.RI_HVISIT_BILLDOC = result.RI_HVISIT_BILLDOC;
            state.rescueVisit.RI_HVISIT_DETAILS = result.RI_HVISIT_DETAILS;
            state.rescueVisit.RI_HVISIT_ID = result.RI_HVISIT_ID;
            state.rescueVisit.RI_HVISIT_ISUS = result.RI_HVISIT_ISUS;
            state.rescueVisit.RI_HVISIT_TIME = result.RI_HVISIT_TIME;
            state.rescueVisit.RI_HVISIT_WHY = result.RI_HVISIT_WHY
        } else {
            for (var p in state.rescueVisit) {
                if (p == "RI_HVISIT_ADDRESS") {
                    state.rescueVisit[p] = [];
                } else {
                    state.rescueVisit[p] = '';
                }
            }
        }
    },
    rescueInterChanger(state, result) {
        if (result != {}) {
            state.rescueInter.RI_HBURIAL_ADDRESS = result.RI_HBURIAL_ADDRESS;
            state.rescueInter.RI_HBURIAL_ADDRESSDETAIL = result.RI_HBURIAL_ADDRESSDETAIL;
            state.rescueInter.RI_HBURIAL_BILLDOC = result.RI_HBURIAL_BILLDOC;
            state.rescueInter.RI_HBURIAL_DETAILS = result.RI_HBURIAL_DETAILS;
            state.rescueInter.RI_HBURIAL_ISLZ = result.RI_HBURIAL_ISLZ;
            state.rescueInter.RI_HBURIAL_ISUS = result.RI_HBURIAL_ISUS;
            state.rescueInter.RI_HBURIAL_TIME = result.RI_HBURIAL_TIME;
            state.rescueInter.RI_HBURIAL_TYPE = result.RI_HBURIAL_TYPE;
            state.rescueInter.RI_HBURIAL_ID = result.RI_HBURIAL_ID;
            state.rescueInter.RI_HBURIAL_WHY = result.RI_HBURIAL_WHY
        } else {
            for (var p in state.rescueInter) {
                if (p == "RI_HBURIAL_ADDRESS") {
                    state.rescueInter[p] = [];
                } else {
                    state.rescueInter[p] = '';
                }
            }
        }
    }






}


export default {
    state,
    mutations
}